﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                assembly="KuaJing.Security"
				        namespace="KuaJing.Security.Domain">

  <class name="UserPermission" table="Security_UserPermission">
    <id name="Id" access="field.camelcase"
        column="UserPermissionId" type="Int32">
      <generator class="native" />
    </id>
    <version name="Version" access="field.camelcase" />
    <many-to-one name="Truster" column="TrusterMembershipId" foreign-key="fk_UserPermission_Membership_Truster" class="KuaJing.Security.Domain.MembershipUser,KuaJing.Security"></many-to-one>
    <many-to-one name="Trustee" column="TrusteeMembershipId" foreign-key="fk_UserPermission_Membership_Trustee" class="KuaJing.Security.Domain.MembershipUser,KuaJing.Security"></many-to-one>

    <property name="EffectiveTime"></property>
    <property name="ExpiredTime"></property>
    <property name="Status"></property>
    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </class>
</hibernate-mapping>
